#include<stdio.h>
#include<string.h>
struct Date
{
int year;
int month;
int day;
};
struct Student
{
char s_name[20];
struct Date birthday;
float score;
};
int main()
{
struct Student stu = {"liuwen",2000,10,1,99.9};
printf("name=%s\nbirthday=%d.%d.%d\nscore=%f\nscore=%f\n",stu.s_name,stu.birthday.year,stu.birthday.month,stu.birthday.day,stu.score);
stu.score=77;
printf("name=%s\nbirthday=%d.%d.%d\nscore=%f\nscore=%f\n",stu.s_name,stu.birthday.year,stu.birthday.month,stu.birthday.day,stu.score);
return 0;
}
